<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CAD-Tool: /home/manish/Desktop/Manish_CAD_Tool/src/3d_to_2d.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CAD-Tool
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">3d_to_2d.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="3d__to__2d_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="structs_8h.html">include/structs.h</a>&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="object__2d_8h.html">include/object_2d.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_object__3d_8h.html">include/Object_3d.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="3d__to__2d_8h.html">include/3d_to_2d.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="form_8h.html">include/form.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;bits/stdc++.h&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#undef scroll</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;QWidget&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="3d__to__2d_8cpp.html#ab538d2702fd0abf46645a902ace3fe93">   14</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="3d__to__2d_8cpp.html#ab538d2702fd0abf46645a902ace3fe93">three_d_to_two_d</a>(<span class="keywordtype">string</span> file)</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    ifstream inFile;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    inFile.open(file);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keywordflow">if</span>(!inFile) <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keywordtype">int</span> no_of_vertices;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    inFile&gt;&gt;no_of_vertices;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    std::vector&lt;vertex_3d&gt; v3d_list;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    std::vector&lt;edge_3d&gt; e3d_list;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    std::vector&lt; std::vector&lt;edge_3d&gt; &gt; surface_list;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">while</span>(no_of_vertices--)</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keywordtype">float</span> a,b,c; <a class="code" href="classvertex__3d.html">vertex_3d</a> v(0,0,0);</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        inFile&gt;&gt;a&gt;&gt;b&gt;&gt;c;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        v.<a class="code" href="classvertex__3d.html#a3f42c81ecbe6cab86cda63854c7799c8">x</a> = a; v.<a class="code" href="classvertex__3d.html#a44d8a3570860630dc76bfa0817786a9b">y</a> = b; v.<a class="code" href="classvertex__3d.html#a9028d1e6317552f63d6cbd57ff5a42ba">z</a> = c;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        v3d_list.pb(v);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    }</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordtype">int</span> no_of_edges;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    inFile&gt;&gt;no_of_edges;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordflow">while</span>(no_of_edges--)</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <span class="keywordtype">int</span> f,s;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        inFile&gt;&gt;f&gt;&gt;s;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <a class="code" href="classedge__3d.html">edge_3d</a> e(f,s);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        e3d_list.pb(e);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="classobject__2d.html">object_2d</a> obj(v3d_list,e3d_list,surface_list);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    std::vector&lt;pair&lt;float,float&gt;&gt; T, Fv,<a class="code" href="structs_8h.html#af933676109efed7ab34cea71d748a517">S</a>,O;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    std::vector&lt;pair&lt;int,int&gt;&gt; Te,Fe,Se,Oe;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">int</span> ai[2];</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;(int)obj.<a class="code" href="classobject__2d.html#aedcad81ef4cdb308ffade7bcf7de4cc2">T_vertices</a>.size();i++)</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        T.pb({obj.T_vertices[i].x, obj.T_vertices[i].y});</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;(int)obj.<a class="code" href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">T_edges</a>.size();i++)</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        ai[0]=obj.<a class="code" href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">T_edges</a>[i].f;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        ai[1]=obj.<a class="code" href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">T_edges</a>[i].s;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        sort(ai,ai+2); Te.pb({ai[0],ai[1]});</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;(int)obj.<a class="code" href="classobject__2d.html#aa12b4ac9f646748a83b22c7a81ff1b7c">F_vertices</a>.size();i++)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        Fv.pb({obj.F_vertices[i].x, obj.F_vertices[i].y});</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;(int)obj.<a class="code" href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">F_edges</a>.size();i++)</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    {</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        ai[0]=obj.<a class="code" href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">F_edges</a>[i].f;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        ai[1]=obj.<a class="code" href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">F_edges</a>[i].s;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        sort(ai,ai+2); Fe.pb({ai[0],ai[1]});</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;(int)obj.<a class="code" href="classobject__2d.html#a722b0505e408b8864809a7ae55c86df4">S_vertices</a>.size();i++)</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        S.pb({obj.S_vertices[i].x, obj.S_vertices[i].y});</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;(int)obj.<a class="code" href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">S_edges</a>.size();i++)</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    {</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        ai[0]=obj.<a class="code" href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">S_edges</a>[i].f;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        ai[1]=obj.<a class="code" href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">S_edges</a>[i].s;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        sort(ai,ai+2); Se.pb({ai[0],ai[1]});</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;v3d_list.size();i++){</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordtype">float</span> q,w;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordtype">float</span> x,y,z;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        x = v3d_list[i].x;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        y = v3d_list[i].y;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        z = v3d_list[i].z;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        q = (x-z)/(sqrt(2));</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        w = (x + 2*y + z)/(sqrt(6));</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        v3d_list[i].x = q;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        v3d_list[i].y = w;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        v3d_list[i].z = 0;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">auto</span> z : v3d_list){</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        O.pb({z.x,z.y});</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i=0;i&lt;e3d_list.size();i++){</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keywordtype">int</span> v1,v2;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        v1 = e3d_list[i].f;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        v2 = e3d_list[i].s;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keywordflow">if</span>(!(v3d_list[v1] == v3d_list[v2]))</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        {</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            ai[0] = v1; ai[1] = v2;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            sort(ai,ai+2); Oe.pb({ai[0],ai[1]});</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    inFile.close();</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">//    Form *f1 = new Form(T, Fv,  S,  O, Te,  Fe,  Se,  Oe);</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment">//    f1-&gt;show();</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}</div><div class="ttc" id="structs_8h_html"><div class="ttname"><a href="structs_8h.html">structs.h</a></div></div>
<div class="ttc" id="classobject__2d_html_abb23f1e7a00cef6deba5d997ff40a751"><div class="ttname"><a href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">object_2d::F_edges</a></div><div class="ttdeci">std::vector&lt; edge_2d &gt; F_edges</div><div class="ttdoc">vector of edges in front-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00018">object_2d.h:18</a></div></div>
<div class="ttc" id="classvertex__3d_html"><div class="ttname"><a href="classvertex__3d.html">vertex_3d</a></div><div class="ttdoc">class for a vertex_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00064">structs.h:64</a></div></div>
<div class="ttc" id="classvertex__3d_html_a44d8a3570860630dc76bfa0817786a9b"><div class="ttname"><a href="classvertex__3d.html#a44d8a3570860630dc76bfa0817786a9b">vertex_3d::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">y-coordinate of the vertex </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00067">structs.h:67</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classvertex__3d_html_a9028d1e6317552f63d6cbd57ff5a42ba"><div class="ttname"><a href="classvertex__3d.html#a9028d1e6317552f63d6cbd57ff5a42ba">vertex_3d::z</a></div><div class="ttdeci">float z</div><div class="ttdoc">z-coordinate of the vertex </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00068">structs.h:68</a></div></div>
<div class="ttc" id="3d__to__2d_8h_html"><div class="ttname"><a href="3d__to__2d_8h.html">3d_to_2d.h</a></div></div>
<div class="ttc" id="classobject__2d_html_a1543063eb017187a7582821d1ec07faf"><div class="ttname"><a href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">object_2d::T_edges</a></div><div class="ttdeci">std::vector&lt; edge_2d &gt; T_edges</div><div class="ttdoc">vector of edges in top-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00017">object_2d.h:17</a></div></div>
<div class="ttc" id="classobject__2d_html_ad13cc39539ebc9c5634ae59dea81e33c"><div class="ttname"><a href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">object_2d::S_edges</a></div><div class="ttdeci">std::vector&lt; edge_2d &gt; S_edges</div><div class="ttdoc">vector of edges in side-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00019">object_2d.h:19</a></div></div>
<div class="ttc" id="classobject__2d_html_aa12b4ac9f646748a83b22c7a81ff1b7c"><div class="ttname"><a href="classobject__2d.html#aa12b4ac9f646748a83b22c7a81ff1b7c">object_2d::F_vertices</a></div><div class="ttdeci">std::vector&lt; vertex_2d &gt; F_vertices</div><div class="ttdoc">vector of co-ordinates of vertices in front-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00015">object_2d.h:15</a></div></div>
<div class="ttc" id="structs_8h_html_af933676109efed7ab34cea71d748a517"><div class="ttname"><a href="structs_8h.html#af933676109efed7ab34cea71d748a517">S</a></div><div class="ttdeci">#define S</div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00004">structs.h:4</a></div></div>
<div class="ttc" id="classobject__2d_html"><div class="ttname"><a href="classobject__2d.html">object_2d</a></div><div class="ttdoc">representation of object_2d </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00011">object_2d.h:11</a></div></div>
<div class="ttc" id="classvertex__3d_html_a3f42c81ecbe6cab86cda63854c7799c8"><div class="ttname"><a href="classvertex__3d.html#a3f42c81ecbe6cab86cda63854c7799c8">vertex_3d::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">x-coordinate of the vertex </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00066">structs.h:66</a></div></div>
<div class="ttc" id="3d__to__2d_8cpp_html_ab538d2702fd0abf46645a902ace3fe93"><div class="ttname"><a href="3d__to__2d_8cpp.html#ab538d2702fd0abf46645a902ace3fe93">three_d_to_two_d</a></div><div class="ttdeci">int three_d_to_two_d(string file)</div><div class="ttdef"><b>Definition:</b> <a href="3d__to__2d_8cpp_source.html#l00014">3d_to_2d.cpp:14</a></div></div>
<div class="ttc" id="form_8h_html"><div class="ttname"><a href="form_8h.html">form.h</a></div></div>
<div class="ttc" id="classedge__3d_html"><div class="ttname"><a href="classedge__3d.html">edge_3d</a></div><div class="ttdoc">class for an edge_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00097">structs.h:97</a></div></div>
<div class="ttc" id="_object__3d_8h_html"><div class="ttname"><a href="_object__3d_8h.html">Object_3d.h</a></div></div>
<div class="ttc" id="classobject__2d_html_a722b0505e408b8864809a7ae55c86df4"><div class="ttname"><a href="classobject__2d.html#a722b0505e408b8864809a7ae55c86df4">object_2d::S_vertices</a></div><div class="ttdeci">std::vector&lt; vertex_2d &gt; S_vertices</div><div class="ttdoc">vector of co-ordinates of vertices in side-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00016">object_2d.h:16</a></div></div>
<div class="ttc" id="classobject__2d_html_aedcad81ef4cdb308ffade7bcf7de4cc2"><div class="ttname"><a href="classobject__2d.html#aedcad81ef4cdb308ffade7bcf7de4cc2">object_2d::T_vertices</a></div><div class="ttdeci">std::vector&lt; vertex_2d &gt; T_vertices</div><div class="ttdoc">vector of co-ordinates of vertices in top-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00014">object_2d.h:14</a></div></div>
<div class="ttc" id="object__2d_8h_html"><div class="ttname"><a href="object__2d_8h.html">object_2d.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
